<?php
use common\service\StaticService;
use backend\assets\AdminAsset;
use common\service\GlobalUrlService;

StaticService::includeAppCssStatic(GlobalUrlService::buildStaticUrl('/css/uniform/css/uniform.default.css'),AdminAsset::class);
StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/js/ueditor/ueditor.config.js'),AdminAsset::class);
StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/js/ueditor/ueditor.all.min.js'),AdminAsset::class);
StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/js/ueditor/lang/zh-cn/zh-cn.js'),AdminAsset::class);
StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/js/ueditor/ueditor.config.js'),AdminAsset::class);
StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/backend/content/add.js'),AdminAsset::class);
//StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/js/jquery-1.8.2.min.js'),AdminAsset::class);
?>


<div class="widget">
    <div class="widget-title">
        <h4><i class="icon-reorder"></i>添加文章</h4>
    </div>
    <div class="widget-body form">
        <!-- BEGIN FORM-->
        <form method="post" action="#" class="form-horizontal">
            <div class="control-group">
                <label class="control-label">文章标题</label>
                <div class="controls">
                    <input type="text" class="span6 menu-name" id="title" name="title" value="">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">文章类型</label>
                <div class="controls">
                    <select class="span6 " id="type" name="type" data-placeholder="Choose a Category" tabindex="1">
                        <option value="1">关于我们</option>
                        <option value="2">常见问题</option>
                        <option value="3">免责声明</option>
                    </select>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">文章内容</label>
                <div class="controls">
                    <script id="editor" type="text/plain" style="width:100%;height: 400px"  class="content"></script>
                </div>
            </div>
            <div class="form-actions">
                <a class="short-green btn-last-cancel" id="qued" style="margin-left:100px;">确定</a>
                <a class="btn-grey btn-last-cancel" style="margin-left:100px;" href="<?= GlobalUrlService::buildAdminUrl('content/content')?>"></button>取消</a>
            </div>
        </form>
    </div>
</div>
